package com.example.beans;

/**
 *
 *  * @projectName myflinkstu
 *  * @title     Event
 *  * @package    com.example.beans
 *  * @description
 *  * @author hjx
 *  * @date   2022-3-28 10:04
 *  * @version V1.0.0
 *  * @copyright 2022 ty
 *
 */
import java.sql.Timestamp;
public class Event {
    public String user;
    public String url;
    public Long timestamp;
    public Integer length = 5;
    public Event() {
    }
    public Event(String user, String url, Long timestamp) {
        this.user = user;
        this.url = url;
        this.timestamp = timestamp;
    }

    public Event(String user, String url, Long timestamp,Integer length) {
        this.user = user;
        this.url = url;
        this.timestamp = timestamp;
        this.length = length;
    }
    @Override
    public String toString() {
        return "Event{" +
                "user='" + user + '\'' +
                ", url='" + url + '\'' +
                ", timestamp=" + new Timestamp(timestamp) + '\'' +
                ", length=" + length +
                '}';
    }
}